package com.hqyj.system.service;

import com.hqyj.system.model.Permission;

import java.util.List;

public interface PermissionService {
    List<Permission> queryAllPermission();

    int addPermissionByPermission(Permission permission);

    int deletePermissionByPermissionId(int permissionId);

    int updatePermissionByPermission(Permission permission);

    Permission queryPermissionByPermissionId(int permissionId);

    List<Permission> queryPermissionByRoleId(int roleId);

    List<Permission> queryPermissionByUserIdAndType(int userId);

    List<Permission> queryPermissionBypIdAndType(int pId);

    List<Permission> queryloginUserPermission(int userId);
}
